<?php
/*
 * description：
 * author：wh
 * email：
 * createTime：{2020/4/22} {17:45} 
 */

namespace libraries\wechat;


class Utils
{
    //static function str_tmp_replace($str, array $param = []){
    //    if(empty($param)) return $str;
    //
    //    $tmp_str = '';
    //    foreach ($param as $key=>$var){
    //
    //    }
    //}

    static function set_result(int $code, $message='', array $data=[]){
        $data_packet = [
            'code'=>$code,
            'msg'=>$message,
            'data'=>$data,
        ];
        return $data_packet;
    }
}